package com.richpay.basejava.base16;

public class EnumDemo {
    public static void main(String[] args) {
        change(Color.BLACK);
    }

    private static void change(Color color) {
        switch (color) {
            case RED:
                System.out.println("红色");
                break;
            case BLACK:
                System.out.println("黑色");
                break;
            case GREEN:
                System.out.println("绿色");
                break;
            case YELLOW:
                System.out.println("黄色");
                break;
            default:
                break;
        }
    }
}
